package com.example.springbootshiro.service;

import com.example.springbootshiro.model.Permission;
import com.example.springbootshiro.model.Role;
import com.example.springbootshiro.model.User;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by YangGang on 2021/12/16 18:22。
 */
public interface UserService {
    User findUserByUsername(String username);

    List<Role> findUserRolesByUsername(String username);

    List<Permission> findUserPermissionsByUsername(String username);

    int addUser(User user);
}
